<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	  <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head id="ctl00_head1">
<meta http-equiv="x-ua-compatible" content="IE=7" />

<meta charset="utf-8">
<link rel="stylesheet" type="text/css"
	href="back/css/hzw-city-picker.css">
<link href='/font/css/showcss/search.css' type='text/css'
	rel='stylesheet' />
<link href="/font/css/showcss/hf.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/font/css/reset1.css" />
<link rel="stylesheet" href="/font/css/style1.css" />
<script src='/font/js/cQuery_110421.js' type='text/javascript'></script>
<script src='/font/js/float.min.js' type='text/javascript'></script>
<script type="text/javascript" src="/font/js/jquery-1.9.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/back/css/button.css">

<title>show</title>

<script type="text/javascript">
	var ReleaseNoAddress = '2017_10_11_15_10_25';
	$(
			
			function() {
			   var value="${flag}";
			
				if(value=="单程"){
					$("#selecttype option[value='1']").removeAttr("selected");
					$("#selecttype option[value='0']").attr("selected","selected");
				}else if(value=="往返"){
					$("#selecttype option[value='0']").removeAttr("selected");
	                $("#selecttype option[value='1']").attr("selected","selected");
					
				}
				$(".exchangedBtn").click(function(){
					
				    var cun=$("#cityChoice").val();
				    $("#cityChoice").val($("#cityChoice1").val());
				    $("#cityChoice").val($("#cityChoice2").val());
				    $("#cityChoice1").val(cun);
				    $("#cityChoice2").val(cun);
				})
				
				/* $("#selecttype").val(value);
				$("#selecttype").get(0).value =value; 
 */
	/* 			$("#G").click(
						function() {
							var ipts = $(":checkbox:checked").parents("label")
									.find("span").text();
							// 遍历input并使用val()方法获取值
							if (ipts != "")

								$.ajax({
									type : "POST",
									url : "/IndexMainServlet",
									data : {
										"ipts" : ipts
									},
									//dataType:"json",  
									success : function(data) {
										alert(data)
										$("#shiyan").html(data)
									},
									error : function() {
										alert(2)
									}
								})

						}) */
																			
				$("#G").click(function(){
					  if($(this).is(':checked')){
						if($("#P").is(':checked')){
							for(var i=0;i< $(".checi .banciname").length;i++){
								
									$(".checi .banciname").eq(i).parent().parent().css("display","block");

							}
							
						}else{
							
							for(var i=0;i< $(".checi .banciname").length;i++){
								var carname= $(".checi .banciname").eq(i).text();
								
								if(carname.substring(0,1)=="K"){
									
									$(".checi .banciname").eq(i).parent().parent().css("display","none");
									
								}
							}
						}
						
					}else{
					  if($("#P").is(':checked')){
								for(var i=0;i< $(".checi .banciname").length;i++){
					
										$(".checi .banciname").eq(i).parent().parent().css("display","block");
		
								}
								
								for(var i=0;i< $(".checi .banciname").length;i++){
									var carname= $(".checi .banciname").eq(i).text();
									
									if(carname.substring(0,1)!=="K"){
										
										$(".checi .banciname").eq(i).parent().parent().css("display","none");
										
									}
								}
						
						}else{
							for(var i=0;i< $(".checi .banciname").length;i++){
								
								$(".checi .banciname").eq(i).parent().parent().css("display","block");
	
						     }
						}
					}
				})
				
				$("#P").click(function(){
					if($(this).is(':checked')){
						if($("#G").is(':checked')){
							for(var i=0;i< $(".checi .banciname").length;i++){
								
									
									$(".checi .banciname").eq(i).parent().parent().css("display","block");
									
								
							}
						}else{
							
							for(var i=0;i< $(".checi .banciname").length;i++){
								var carname= $(".checi .banciname").eq(i).text();
								
								if(carname.substring(0,1)!=="K"){
									
									$(".checi .banciname").eq(i).parent().parent().css("display","none");
									
								}
							}
						}
						
					}else{
						if($("#G").is(':checked')){
							for(var i=0;i< $(".checi .banciname").length;i++){
                       			$(".checi .banciname").eq(i).parent().parent().css("display","block");

						    }
							for(var i=0;i< $(".checi .banciname").length;i++){
								var carname= $(".checi .banciname").eq(i).text();
								
								if(carname.substring(0,1)=="K"){
									
									$(".checi .banciname").eq(i).parent().parent().css("display","none");
									
								}
							}
							
						}else{
							for(var i=0;i< $(".checi .banciname").length;i++){
                       			$(".checi .banciname").eq(i).parent().parent().css("display","block");

						    }
							
						}

						
					}
				})
				
				$("#buxian").click(function(){
					$("#G").attr("checked", false)
					$("#P").attr("checked", false)
					for(var i=0;i< $(".checi .banciname").length;i++){
               			$(".checi .banciname").eq(i).parent().parent().css("display","block");

				    }
				})
				
				$("#centerUlList1 li a").on("click",function(){
					$("#centerUlList1 li a").removeClass("current")
					$(this).addClass("current")
					var i = $(this).attr("num");
					var now1 = new Date();
					var date = new Date(now1.getTime() +i * 24 * 3600 * 1000);
					var da=date.getFullYear()+"-";
					if(date.getMonth()<9){
						da = da+"0"+(date.getMonth()+1)+"-"
						  
					  }else{
						  da =da+(date.getMonth()+1)+"-"
					  }
					  if(date.getDate()<10){
						  da=da+"0"+date.getDate()
					  }else{
						  da=da+date.getDate()
					  }
					  
					$("#ECalendar_case1").val(da);
					$("#time1").val(da);
					
					$("#form").submit();
				})
				
				
			})
			//cal_middle1<li><a class="current" style="cursor: pointer;" >11-01<br>周三</a></li>
	   function gengxinshijian(){
		
		  setInterval(function() {
		    var now = (new Date()).toLocaleString();
		 
		    $('#current-time').text(now);
		  }, 1000);
		  for(var i=0;i<7;i++){
			  var now1 = new Date();
			  var date = new Date(now1.getTime() +i * 24 * 3600 * 1000);
			  //alert(date.toLocaleString())
			  var t1,t2,t3;
			  if(date.getMonth()<9){
				  t1 = "0"+(date.getMonth()+1)
				  
			  }else{
				  t1 =date.getMonth()+1
			  }
			  if(date.getDate()<10){
				  t2="0"+date.getDate()
			  }else{
				  t2=date.getDate()
			  }
			  
			  if(date.getDay()==0){
				  t3="星期日"
			  }else if(date.getDay()==1){
				  t3="星期一"
			  }else if(date.getDay()==2){
				  t3="星期二"
			  }else if(date.getDay()==3){
				  t3="星期三"
			  }else if(date.getDay()==4){
				  t3="星期四"
			  }else if(date.getDay()==5){
				  t3="星期五"
			  }else if(date.getDay()==6){
				  t3="星期六"
			  }
			  
			  $("#centerUlList1 li a").eq(i).html(t1+"-"+t2+"<br>"+t3).attr("num",i)
		  }
		  
		  var now1 = new Date();
		  var closingDate=new Date($("#ECalendar_case1").val().replace("-", "/").replace("-", "/"));
		  $("#centerUlList1 li a").removeClass("current")
		  var n=Math.ceil((closingDate.getTime()-now1.getTime())/( 24 * 3600 * 1000));
		  
		   for(var i=0;i< $("#centerUlList1 li a").length;i++){
			  if($("#centerUlList1 li a").eq(i).attr("num")==n){
					  $("#centerUlList1 li a").eq(i).addClass("current")
			  }
		  }   
	   }
	   
	   function zongtiyanzheng(){
		    $("#time1").val($("#ECalendar_case1").val()) 
		    $("#time2").val($("#ECalendar_case").val()) 
		    return true;
	   }
	   var zqian=0;
	   var quflag=0;
	   var huiflag=0;
	   function adddingdan(city1,city2,crname,gotime,overtime,zongtime,time1,zuotype,oop){
		   $(".wai").show()
		   zqian=0.0;
		   quflag=0;
		  // alert(city2+","+city1)
		    zqian=parseInt(zqian)
		    var qian= $(oop).parent().parent().parent().find(".piaozi").text();
		    var qian1= $(oop).parent().parent().parent().find(".piaozi1").text();
		    var qian2= $(oop).parent().parent().parent().find(".piaozi2").text();
		    
		    
		    var shengyu= $(oop).parent().parent().parent().find(".shengyu").text();
		    var shengyu1= $(oop).parent().parent().parent().find(".shengyu1").text();
		    var shengyu2= $(oop).parent().parent().parent().find(".shengyu2").text();
		    var week;
		    alert(shengyu1)
		    var date=new Date(time1.replace("-", "/").replace("-", "/"));
		    if(date.getDay()==0){
		    	week="星期日"
			  }else if(date.getDay()==1){
				  week="星期一"
			  }else if(date.getDay()==2){
				  week="星期二"
			  }else if(date.getDay()==3){
				  week="星期三"
			  }else if(date.getDay()==4){
				  week="星期四"
			  }else if(date.getDay()==5){
				  week="星期五"
			  }else if(date.getDay()==6){
				  week="星期六"
			  }
		   // alert(week)
		   if(zuotype=="商务座"){ 
			   $(".dingdan .qu").html(
					   "<ul class='yangshi'><li class='gb'>去</li><li><font>"+crname+"</font></li><li><font>"+city1+"</font></li>"+
				         "<li>-</li>"+
				         "<li><font>"+city2+"</font></li>"+
				         "<li><font>"+time1+"</font></li>"+
				         "<li><font>"+gotime+"出发</font></li>"+
				         "<li><font>"+zuotype+"</font></li>"+
				         "<li>￥<font class='qian'>"+qian+"</font></li></ul>"+
				         "<input type='hidden' name='crname1' value='"+crname+"'>"+
				         "<input type='hidden' name='city11' value='"+city1+"' >"+
				         "<input type='hidden' name='city21' value='"+city2+"' >"+
				         "<input type='hidden' name='gotime1' value='"+gotime+"' >"+
				         "<input type='hidden' name='overtime1' value='"+overtime+"' >"+
				         "<input type='hidden' name='zongtime1' value='"+zongtime+"' >"+
				         "<input type='hidden' name='time11' value='"+time1+"' >"+
				         "<input type='hidden' name='zuotype1' value='"+zuotype+"' >"+
				         "<input type='hidden' name='week1' value='"+week+"' >"+
				         "<input type='hidden' name='qian1' value='"+qian+"' >"+
				         "<input type='hidden' name='shengyu1' value='"+shengyu+"' >"+
				         "<input type='hidden' name='wangfan' value='"+$("#single").text()+"' >"
				         
			   )
			   zqian+=qian*1.0;
			  
		   } else if(zuotype=="普通座"){
			   
			   $(".dingdan .qu").html(
					   "<ul class='yangshi'><li class='gb'>去</li><li><font>"+crname+"</font></li><li><font>"+city1+"</font></li>"+
				         "<li>-</li>"+
				         "<li><font>"+city2+"</font></li>"+
				         "<li><font>"+time1+"</font></li>"+
				         "<li><font>"+gotime+"出发</font></li>"+
				         "<li><font>"+zuotype+"</font></li>"+
				         "<li>￥<font class='qian'>"+qian1+"</font></li></ul>"+
				         "<input type='hidden' name='crname1' value='"+crname+"' >"+
				         "<input type='hidden' name='city11' value='"+city1+"' >"+
				         "<input type='hidden' name='city21' value='"+city2+"' >"+
				         "<input type='hidden' name='gotime1' value='"+gotime+"' >"+
				         "<input type='hidden' name='overtime1' value='"+overtime+"' >"+
				         "<input type='hidden' name='zongtime1' value='"+zongtime+"' >"+
				         "<input type='hidden' name='time11' value='"+time1+"' >"+
				         "<input type='hidden' name='zuotype1' value='"+zuotype+"' >"+
				         "<input type='hidden' name='week1' value='"+week+"' >"+
				         "<input type='hidden' name='qian1' value='"+qian1+"' >"+
				         "<input type='hidden' name='shengyu1' value='"+shengyu1+"' >"+
				         "<input type='hidden' name='wangfan' value='"+$("#single").text()+"' >"
			   )
			   zqian+=qian1*1.0;
		   }else if(zuotype=="无座"){
			   
			   $(".dingdan .qu").html(
					   "<ul class='yangshi'><li class='gb'>去</li><li><font>"+crname+"</font></li><li><font>"+city1+"</font></li>"+
				         "<li>-</li>"+
				         "<li><font>"+city2+"</font></li>"+
				         "<li><font>"+time1+"</font></li>"+
				         "<li><font>"+gotime+"出发</font></li>"+
				         "<li><font>"+zuotype+"</font></li>"+
				         "<li>￥<font class='qian'>"+qian2+"</font></li></ul>"+
				         "<input type='hidden' name='crname1' value='"+crname+"' >"+
				         "<input type='hidden' name='city11' value='"+city1+"' >"+
				         "<input type='hidden' name='city21' value='"+city2+"' >"+
				         "<input type='hidden' name='gotime1' value='"+gotime+"' >"+
				         "<input type='hidden' name='overtime1' value='"+overtime+"' >"+
				         "<input type='hidden' name='zongtime1' value='"+zongtime+"' >"+
				         "<input type='hidden' name='time11' value='"+time1+"' >"+
				         "<input type='hidden' name='zuotype1' value='"+zuotype+"' >"+
				         "<input type='hidden' name='week1' value='"+week+"' >"+
				         "<input type='hidden' name='qian1' value='"+qian2+"' >"+
				         "<input type='hidden' name='shengyu1' value='"+shengyu2+"' >"+
				         "<input type='hidden' name='wangfan' value='"+$("#single").text()+"' >"
			   )
			   zqian+=qian2*1.0;
		   }
		   quflag=1;
		   //alert($(".hui .qian").text())
		   if($(".hui .qian").text()==""){
			   $("#zongqian font").html(zqian*1.0+"<input type='hidden' name='zongqian' value='"+zqian*1.00+"'>")
		   }else{
			   $("#zongqian font").html(zqian*1.0+parseFloat($(".hui .qian").text())+"<input type='hidden' name='zongqian' value='"+(zqian*1.0+parseFloat($(".hui .qian").text()))*1.00+"'>")
			   
		   }
		   
		   if($("#single").text()=='单程'){
				  $(".button").attr("disabled", false).css("color","#fff");
			  }else{
				  if(huiflag==1){
					  $(".button").attr("disabled", false).css("color","#fff");
				  }
			  }
		   
	   }
	   function adddingdan1(city1,city2,crname,gotime,overtime,zongtime,time1,zuotype,oop){
		   $(".wai").show()
		   zqian=0.0;
		   huiflag=0;
		  // alert(city2+","+city1)
		     zqian= parseInt(zqian)
		    var qian= $(oop).parent().parent().parent().find(".piaozi").text();
		    var qian1= $(oop).parent().parent().parent().find(".piaozi1").text();
		    var qian2= $(oop).parent().parent().parent().find(".piaozi2").text();
		    
		    var shengyu= $(oop).parent().parent().parent().find(".shengyu").text();
		    var shengyu1= $(oop).parent().parent().parent().find(".shengyu1").text();
		    var shengyu2= $(oop).parent().parent().parent().find(".shengyu2").text();
		    
		     var week;
		    var date=new Date(time1.replace("-", "/").replace("-", "/"));
		    if(date.getDay()==0){
		    	week="星期日"
			  }else if(date.getDay()==1){
				  week="星期一"
			  }else if(date.getDay()==2){
				  week="星期二"
			  }else if(date.getDay()==3){
				  week="星期三"
			  }else if(date.getDay()==4){
				  week="星期四"
			  }else if(date.getDay()==5){
				  week="星期五"
			  }else if(date.getDay()==6){
				  week="星期六"
			  } 
		    //alert(week)
		    
		   if(zuotype=="商务座"){ 
			   $(".dingdan .hui").html(
					   "<ul><li class='gb'>返</li><li><font>"+crname+"</font></li><li><font>"+city1+"</font></li>"+
				         "<li>-</li>"+
				         "<li><font>"+city2+"</font></li>"+
				         "<li><font>"+time1+"</font></li>"+
				         "<li><font>"+gotime+"出发</font></li>"+
				         "<li><font>"+zuotype+"</font></li>"+
				         "<li>￥<font class='qian'>"+qian+"</font></li></ul>"+
				         "<input type='hidden' name='crname2' value='"+crname+"' >"+
				         "<input type='hidden' name='city12' value='"+city1+"' >"+
				         "<input type='hidden' name='city22' value='"+city2+"' >"+
				         "<input type='hidden' name='gotime2' value='"+gotime+"' >"+
				         "<input type='hidden' name='overtime2' value='"+overtime+"' >"+
				         "<input type='hidden' name='zongtime2' value='"+zongtime+"' >"+
				         "<input type='hidden' name='time12' value='"+time1+"' >"+
				         "<input type='hidden' name='zuotype2' value='"+zuotype+"' >"+
				         "<input type='hidden' name='week2' value='"+week+"' >"+
				         "<input type='hidden' name='qian2' value='"+qian+"' >"+
				         "<input type='hidden' name='shengyu2' value='"+shengyu+"' >"
			   )
			   zqian=+qian*1.0;
		   } else if(zuotype=="普通座"){
			   
			   $(".dingdan .hui").html(
					   "<ul><li class='gb'>返</li><li><font>"+crname+"</font></li><li><font>"+city1+"</font></li>"+
				         "<li>-</li>"+
				         "<li><font>"+city2+"</font></li>"+
				         "<li><font>"+time1+"</font></li>"+
				         "<li><font>"+gotime+"出发</font></li>"+
				         "<li><font>"+zuotype+"</font></li>"+
				         "<li>￥<font class='qian'>"+qian1+"</font></li></ul>"+
				         "<input type='hidden' name='crname2' value='"+crname+"' >"+
				         "<input type='hidden' name='city12' value='"+city1+"' >"+
				         "<input type='hidden' name='city22' value='"+city2+"' >"+
				         "<input type='hidden' name='gotime2' value='"+gotime+"' >"+
				         "<input type='hidden' name='overtime2' value='"+overtime+"' >"+
				         "<input type='hidden' name='zongtime2' value='"+zongtime+"' >"+
				         "<input type='hidden' name='time12' value='"+time1+"' >"+
				         "<input type='hidden' name='zuotype2' value='"+zuotype+"' >"+
				         "<input type='hidden' name='week2' value='"+week+"' >"+
				         "<input type='hidden' name='qian2' value='"+qian1+"' >"+
				         "<input type='hidden' name='shengyu2' value='"+shengyu1+"' >"
				         
			   )
			   zqian=+qian1*1.0;
		   }else if(zuotype=="无座"){
			   
			   $(".dingdan .hui").html(
					   "<ul><li class='gb'>返</li><li><font>"+crname+"</font></li><li><font>"+city1+"</font></li>"+
				         "<li>-</li>"+
				         "<li><font>"+city2+"</font></li>"+
				         "<li><font>"+time1+"</font></li>"+
				         "<li><font>"+gotime+"出发</font></li>"+
				         "<li><font>"+zuotype+"</font></li>"+
				         "<li>￥<font class='qian'>"+qian2+"</font></li></ul>"+
				         "<input type='hidden' name='crname2' value='"+crname+"' >"+
				         "<input type='hidden' name='city12' value='"+city1+"' >"+
				         "<input type='hidden' name='city22' value='"+city2+"' >"+
				         "<input type='hidden' name='gotime2' value='"+gotime+"' >"+
				         "<input type='hidden' name='overtime2' value='"+overtime+"' >"+
				         "<input type='hidden' name='zongtime2' value='"+zongtime+"' >"+
				         "<input type='hidden' name='time12' value='"+time1+"' >"+
				         "<input type='hidden' name='zuotype2' value='"+zuotype+"' >"+
				         "<input type='hidden' name='week2' value='"+week+"' >"+
				         "<input type='hidden' name='qian2' value='"+qian2+"' >"+
				         "<input type='hidden' name='shengyu2' value='"+shengyu2+"' >"
			   )
			   zqian=+qian2*1.0;
		   }
		  // alert(parseFloat($(".qu .qian").text()))
		  huiflag=1;
		   if($(".qu .qian").text()==""){
			  
			   $("#zongqian font").html(zqian*1.0+"<input type='hidden' name='zongqian' value='"+zqian*1.0+"'>")
		   }else{
			   
			   $("#zongqian font").html(zqian*1.0+parseFloat($(".qu .qian").text())+"<input type='hidden' name='zongqian' value='"+(zqian*1.0+parseFloat($(".qu .qian").text()))*1.00+"'>")
		   }
		 
		  if(quflag==1){
			  $(".button").attr("disabled", false).css("color","#fff");
		  }
		  
		   
	   }
	   
	   function dingdantijiao(){
		   $(".button").attr("disabled", true)
	   }
</script>
<style type="text/css">
.footer_w {
	width: 100%;
	background: #000;
	padding: 15px 0;
}

.footer .footer_c {
	float: left;
	padding-top: 20px;
}

.footer .f_logo {
	float: right;
	margin-top: -53px;
}

.footer .footer_c a {
	color: #fff;
}

.footer {
	width: 980px;
	margin: 0 auto;
	color: #fff;
}

#main {
	height: 845px;
	background-color: white;
}

.checkbox1 {
	background-image: url("images/fuxuankuang2.png");
	background-position: -1px -1px;
}

.banci{
    		max-width: 1180px;
			min-width: 980px;
		    padding-bottom:30px;
			width: auto;
			margin: 0 auto;
			border-bottom: 1px solid #E8E8E8;
    	}
    	.checi{
    	    display: inline-block;
    		width: 104px;
            text-align: center;
    		
    	}
    	.banciname{
    		margin-top: 30px;
    		margin-bottom: 8px;
    	}
    	.shijian{
    	    width: 150px;
    	    
    	    text-align: center;
    		display: inline-block;
    	}
    	
    	
    	.zhandian{
    		width: 203px;
    	   
    	    text-align: center;
    		display: inline-block;
    		
    	}
    	
    	.zhandian font{
    		letter-spacing: 0.8em;
    	}
    	
    	.shi_icon {
             color: #2577e3;
          }
          .zhong_icon {
          	color: #ff9913
          }
          
          .zongshijian{
          	width: 150px;
    	   
    	    text-align: center;
    		display: inline-block;
    		
          }
          .cankaojia{
            vertical-align:top;
          	display:inline-block;
          }
          .jiaqian{
          	display: block;
          	width: 368px;
    	   
    	    text-align: center;
    	    margin-top: 15px;
          }
          .jiaqian font{
          	color: #FA6700;
			font-size: 15px;
			display: inline-block;
			width: 23%;
			font-weight: 30px;
          }
		.qp_btn1{
			margin-top: 15px;
		
		}
		{
margin: 0;
padding: 0;

} 
.wai{
    position:fixed;
    z-index:1000;
    bottom:20px;   
    left:20%;
    width: 870px;
    height: 83px;
    border: 1px solid #B0BFEA;
    border-radius: 13px 13px 0px 0px;
    background-color: #F7F8FB;
    margin-left:auto;
    margin-right:auto;
    font-family: "youyuan";
    font-weight: 700;
  }
 .wai ul li{
  list-style: none;
  float: left;
  margin-left: 24px;
  padding-left: 2px;

}
.gb{

  border: 1px solid lightskyblue;
width: 21px;
height: 21px;
background-color: lightskyblue;
font-family: "youyuan";
font-weight: 700;
}
		 
#zongqian{

	width: 110px;
	height: 30px;
	display: inline-block;
	color: #FA6700;
	font-size: 15px;
	font-weight: 30px;
}
</style>
</head>
<body id='mainbody' onload="gengxinshijian()">
 <jsp:include page="top.jsp"></jsp:include> 
 <div style="position: absolute;top:292px;left:1723px;z-index:1000;background-color: #fff;width: 20px;height: 20px;"></div>

	<div id="main">
		<div id="head"></div>

		<!--==搜索框==-->
		<div class="base_bd">
			
			<div class="search_box">
			  <form action="/IndexMainServlet" id="form" mothod="post" onsubmit="return zongtiyanzheng()">
				<ul>
					<li class="search_sel">
					<select name="flag" id="selecttype">
							<option value="0">单程</option>
							<option value="1">往返</option>

					</select></li>
					<li class="search_region_lft">
						<!-- <input class="txt100" value="北京" type="text" id="notice01"> -->
						<input type="text" id="cityChoice" name="city1" value="${city1 }"
						style="margin: -7px -11px -55px; height: 23px; width: 130px;">
					</li>
					<li class="search_exchanged"><a class="exchangedBtn"
						href="###" id="change
						">换</a></li>
					<li class="search_region_rit" bus="true">
						<!-- <input class="txt100" value="深圳" type="text" id="notice08"> -->
						<input type="text" id="cityChoice1" name="city2" value="${ city2}"
						style="margin: -2px 0px 0px -24px; width: 127px; height: 22px;">

					</li>
					<li class="search_region_rit" style="display: none" bus="false">
						<!-- <input class="txt100" value="深圳" type="text" id="notice02"> -->
						<input type="text" id="cityChoice2" value="${ city2}" name="city2"
						style="margin: -2px 0px 0px -24px; width: 127px; height: 22px;">

					</li>

					<li class="search_date_lft">出发日期</li>
					<li class="search_dateInput_lft">
					   <input type="hidden" id="time1"  name="time1">
					   <input class="txt100"  value="${time1}" type="text"  id="ECalendar_case1">
					</li>
					<li class="search_date_rit returndate">返回日期</li>
					<li class="search_dateInput_rit returndate">
					<input type="hidden" id="time2"   name="time2">
					<input class="txt100"   value="${time2}" type="text" id="ECalendar_case">
					</li>
                
					<li class="search_Btn">
					
					 <input class="blueBtn" value="搜索" type="submit" >
				
					
					</li>
				
				</ul>
			 	</form>
			                                                                                       
									 
								  
			</div>
			
			<input type="hidden" id="from" value="beijing" /> <input
				type="hidden" id="to" value="shenzhen" /> <input type="hidden"
				id="tos" value="shenzhen" /> <input type="hidden" id="hub" value="" />
			<input type="text" id="validates" value="" style="display: none" />
			<input type="hidden" id="validatesto" value="" />
		</div>
		<div class="base_bd">
			<!--==车次==-->
			<div class="trainList_box">

				<div class="trainList_title" style="width: 1200px;">
					<h2>
					
						<strong>${city1 }</strong> <i class="arr"></i> <strong>${city2 }</strong>
					</h2>
					<span id="single" style="margin-right: 10px;">${flag}</span>
					<c:choose>
							<c:when test="${flag=='单程' }">
									
										 <b id="titleResult" style="">${time1}（共<a
									style="color: #333;" id="totalResult">${count }</a>个车次）
								</b>
								<b id="current-time"></b>
							</c:when>
							<c:otherwise>
									<h2 style=" margin-lift:auto;margin-right:auto; font: 20px 'Microsoft Yahei';color: #457DE5;margin-top: 14px;">&nbsp;去程</h2>
										 <b id="titleResult" style="">${time1}（共<a
									style="color: #333;" id="totalResult">${count }</a>个车次）
								</b>
								
								<h2 style="margin-left: 20px;">
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<strong>${city2 }</strong> <i class="arr"></i> <strong>${city1 }</strong>
								</h2>
								<h2 style=" margin-lift:auto;margin-right:auto; font: 20px 'Microsoft Yahei';color: #81BF45;margin-top: 14px;">&nbsp;返程</h2>
								<b id="titleResult" style="">${time2}（共<a
									style="color: #333;" id="totalResult">${count1 }</a>个车次）
								</b>
								<b id="current-time"></b>
							</c:otherwise>
					</c:choose>
					
					
				</div>

				<div class="calendar" id="ulCanlender02" style="">
					<div class="cal_left">
						<a onclick="CanlenderLeftButtonClick01()" class="icon_cal_left "
							id="canlenderleftbutton01"><i></i></a>
					</div>
				 	<ul class="cal_middle1" id="centerUlList1">
						<li><a class="current" style="cursor: pointer;" >11-01<br>周三</a></li>
						<li><a class="" style="cursor: pointer;" >11-01<br>周三</a></li>
						<li><a class="" style="cursor: pointer;" >11-01<br>周三</a></li>
						<li><a class="" style="cursor: pointer;" >11-01<br>周三</a></li>
						<li><a class="" style="cursor: pointer;" >11-01<br>周三</a></li>
						<li><a class="" style="cursor: pointer;" >11-01<br>周三</a></li>
						<li><a class="" style="cursor: pointer;" >11-01<br>周三</a></li>
						
					</ul> 
					<div class="cal_right">
						<a onclick="CanlenderRightButtonClick01()" class="icon_cal_right "
							id="canlenderrightbutton01"><i></i></a>
					</div>
				</div>

				<div class="search_cate" style="height: 38px; width: 1159px;"
					id="resultFilters01">
					<dl class="search_cate_list">
						<dt>车&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型：</dt>
						<dd class="no_limit">
							<label class="selected" id="buxian">不限</label>
						</dd>
						<dd>
							<label><input type="checkbox" name="G" id="G" /><span>G/C高铁</span></label>
						</dd>
						<dd>
							<label><input type="checkbox" name="P" id="P" /><span>普通</span></label>
						</dd>

					</dl>


					<img alt="" src="images/fuxuankuang2.png">
				</div>

				<div id="listheader" style="width: 1162px;">
					<dl class="topic_box">
						<dd class="w1">
							<label style="cursor: default">车次信息</label>
						</dd>
						<dd class="w2">
							<label class="icon_blue_down sort" order='1,default,false'>发/到时间<b
								class="on"></b></label>
						</dd>
						<dd class="w3">
							<label style="cursor: default">发/到站</label>
						</dd>
						<dd class="w4">
							<label class="icon_gray_down sort" order="3,default,false">运行时长<b
								class="on"></b></label>
						</dd>
						<dd class="w5">
							<label class="icon_gray_down sort" order="8,default,false" style="margin-left: 44px;">参考价<b
								class="on"></b></label>
						</dd>
						<dd class="w6">
							<label order="8,default,false">剩余票数<b class="on"></b></label>
						</dd>
					</dl>
				</div>

			</div>

		</div>
		<div>
	<c:forEach items="${lis}" var="l">
		

		<div class="banci">
		<c:if test="${flag =='往返'}">
			<h2 style=" margin-lift:auto;margin-right:auto; font: 20px 'Microsoft Yahei';color: #457DE5;">&nbsp;去程</h2>

		</c:if>
        	<div class="checi"><h1 class="banciname">${l.crname}</h1><span>直达</span></div>
        	<div class="shijian"><h1 class="banciname">${l.gotime }</h1><span>${l.overtime }</span></div>
        	<div class="zhandian"><h1 class="banciname"><i class="shi_icon">始</i>&nbsp;&nbsp;&nbsp;<font>${l.goname }</font></h1><span><i class="zhong_icon">终</i>&nbsp;&nbsp;&nbsp;<font>${l.overname }</font></span></div>
        	<div class="zongshijian"><h1 class="banciname">${l.zongtime }</h1><span>预计时间</span></div>
        	<div class="cankaojia">
        	     <span class="jiaqian">商务座 
	        	     
		        	     <c:forEach items="${zuotype}" var="zt" >
		        	     	<c:if test="${zt.zname=='商务' }">
		        	     		<font>￥<b class="piaozi">${l.jibenjia+zt.qian}</b></font><a style="margin-left: 64px;">余<b class="shengyu">${l.coce-l.cocenum }</b>张</a>
		        	     	</c:if>
		        	     </c:forEach>		
	        	     
        	     </span>
        	     <span class="jiaqian">普通座 
	        	     
	        	    	  <c:forEach items="${zuotype}" var="zt" >
		        	     	 <c:if test="${zt.zname=='普通' }">
		        	     		<font>￥<b class="piaozi1">${l.jibenjia+zt.qian}</b></font><a style="margin-left: 64px;">余<b class="shengyu1">${l.coon-l.coonnum }</b>张</a>
		        	     	 </c:if>
		        	     </c:forEach>
	        	     
        	     </span>
        	    <span class="jiaqian"> &nbsp;无座 <font>￥<b class="piaozi2">${l.jibenjia}</b></font><a style="margin-left: 64px;">余<b class="shengyu2">${l.stand-l.standnum }</b>张</a></span>
           </div>
           
           <div class="w6">
			         <div>
			            
		        	     		<c:if test="${l.coce-l.cocenum lt 119 }">
		        	     			<a class="qp_btn1" href="###" canthese="True"  style="background-color:#7494BD"  onclick="">
					                                                          预先抢
				                    </a>
		        	     		</c:if>  
		        	     		<c:if test="${l.coce-l.cocenum gt 119 }">
		        	     			<a class="qp_btn1" href="###" canthese="True"  onclick="adddingdan('${city1 }','${city2 }','${l.crname}','${l.gotime}','${l.overtime}','${l.zongtime }','${time1}','商务座',this)">
					                                                          预订
				                    </a>
		        	     		</c:if>
		        	     
				         
			          </div>
			          <div>
				          <c:if test="${l.coon-l.coonnum lt 119 }">
		        	     			<a class="qp_btn1" href="###" canthese="True"  style="background-color:#7494BD"  onclick="">
					                                                          预先抢
				                    </a>
		        	     		</c:if>  
		        	     		<c:if test="${l.coon-l.coonnum gt 119 }">
		        	     			<a class="qp_btn1" href="###" canthese="True"   onclick="adddingdan('${city1 }','${city2 }','${l.crname}','${l.gotime}','${l.overtime}','${l.zongtime }','${time1}','普通座',this)">
					                                                          预订
				                    </a>
		        	     </c:if>
			          </div>
			          <div>
				          <c:if test="${l.stand-l.standnum lt 119 }">
		        	     			<a class="qp_btn1" href="###" canthese="True"  style="background-color:#7494BD"  onclick="">
					                                                          预先抢
				                    </a>
		        	     		</c:if>  
		        	     		<c:if test="${l.stand-l.standnum gt 119 }">
		        	     			<a class="qp_btn1" href="###" canthese="True"  onclick="adddingdan('${city1 }','${city2 },'${l.crname}','${l.gotime}','${l.overtime}','${l.zongtime }','${time1}','无座',this)">
					                                                          预订
				                    </a>
		        	     </c:if>
			          </div>
		    </div>
        </div>
        <c:if test="${not empty lis1 and flag =='往返' }">
	        <c:forEach items="${lis1}" var="li">
	           <c:if test="${li.gotime==l.gotime }">	
			      <div class="banci">
				        
			        <h2 style=" margin-lift:auto;margin-right:auto; font: 20px 'Microsoft Yahei';color: #81BF45;">&nbsp;返程</h2>
			        	
		        	<div class="checi"><h1 class="banciname">${li.crname}</h1><span>直达</span></div>
		        	<div class="shijian"><h1 class="banciname">${li.gotime }</h1><span>${li.overtime }</span></div>
		        	<div class="zhandian"><h1 class="banciname"><i class="shi_icon">始</i>&nbsp;&nbsp;&nbsp;<font>${li.goname }</font></h1><span><i class="zhong_icon">终</i>&nbsp;&nbsp;&nbsp;<font>${li.overname }</font></span></div>
		        	<div class="zongshijian"><h1 class="banciname">${li.zongtime }</h1><span>预计时间</span></div>
		        	<div class="cankaojia">
		        	     <span class="jiaqian">商务座 
			        	     
				        	     <c:forEach items="${zuotype}" var="zt" >
				        	     	<c:if test="${zt.zname=='商务' }">
				        	     		<font>￥<b class="piaozi">${li.jibenjia+zt.qian}</b></font><a style="margin-left: 64px;">余<b class="shengyu">${li.coce-li.cocenum }</b>张</a>
				        	     	</c:if>
				        	     </c:forEach>		
			        	     
		        	     </span>
		        	     <span class="jiaqian">普通座 
			        	     
			        	    	  <c:forEach items="${zuotype}" var="zt" >
				        	     	 <c:if test="${zt.zname=='普通' }">
				        	     		<font>￥<b class="piaozi1">${li.jibenjia+zt.qian}</b></font><a style="margin-left: 64px;">余<b class="shengyu1">${li.coon-li.coonnum }</b>张</a>
				        	     	 </c:if>
				        	     </c:forEach>
			        	     
		        	     </span>
		        	    <span class="jiaqian"> &nbsp;无座 <font>￥<b class="piaozi2">${li.jibenjia}</b></font><a style="margin-left: 64px;">余<b class="shengyu2">${li.stand-li.standnum }</b>张</a></span>
		           </div>
		           
		           <div class="w6">
					         <div>
					            
				        	     		<c:if test="${li.coce-li.cocenum le 119 }">
				        	     			<a class="qp_btn1" href="###" canthese="True"  style="background-color:#7494BD"  onclick="">
							                                                          预先抢
						                    </a>
				        	     		</c:if>  
				        	     		<c:if test="${li.coce-li.cocenum gt 119 }">
				        	     			<a class="qp_btn1" href="###" canthese="True"  onclick="adddingdan1('${city2 }','${city1 }','${li.crname}','${li.gotime}','${li.overtime}','${li.zongtime }','${time2}','商务座',this)">
							                                                          预订
						                    </a>
				        	     		</c:if>

						         
					          </div>
					          <div>
						          <c:if test="${li.coon-li.coonnum le 119 }">
				        	     			<a class="qp_btn1" href="###" canthese="True"  style="background-color:#7494BD"  onclick="">
							                                                          预先抢
						                    </a>
				        	     		</c:if>  
				        	     		<c:if test="${li.coon-li.coonnum gt 119 }">
				        	     			<a class="qp_btn1" href="###" canthese="True"  onclick="adddingdan1('${city2 }','${city1 }','${li.crname}','${li.gotime}','${li.overtime}','${li.zongtime }','${time2}','普通座',this)">
							                                                          预订
						                    </a>
				        	     </c:if>
					          </div>
					          <div>
						          <c:if test="${li.stand-li.standnum lt 119 }">
				        	     			<a class="qp_btn1" href="###" canthese="True" style="background-color:#7494BD"  onclick="">
							                                                          预先抢
						                    </a>
				        	     		</c:if>  
				        	     		<c:if test="${li.stand-li.standnum gt 119 }">
				        	     			<a class="qp_btn1" href="###" canthese="True"  onclick="adddingdan1('${city2 }','${city1 }','${li.crname}','${li.gotime}','${li.overtime}','${li.zongtime }','${time2}','无座',this)">
							                                                          预订
						                    </a>
				        	     </c:if>
					          </div>
				    </div>
		        </div>
	        
	            </c:if>
	        </c:forEach>
        </c:if>
        </c:forEach>
		<!-- foot -->

           </div>
 <div class="wai" style="display: none;">
    <form  action="ShowOrderServlet" method="post" onsubmit="dingdantijiao()">
        <div class="dingdan" style="width:655px; display: inline-block;" >
	       <c:choose>
	       		<c:when test="${flag=='单程' }">
	       		<div class="qu" style="height: 40px;margin-top: 34px;display: inline-block;" >             
				   <ul>
			        <li class="gb" style="background-color: lightgrey;border: 1px;">去</li>
			        <li style="margin-left: 16px;color: orange;">请选择去程</li>
			        <li style="margin-left: -1px;font-weight: 400;">（祝您旅行愉快！）</li>
			
			       </ul>
	            </div>
	       		</c:when>
				<c:otherwise>
					<div class="qu" style="height: 40px;margin-top: 14px;display: inline-block;" >           
						   <ul>
					        <li class="gb" style="background-color: lightgrey;border: 1px;">去</li>
					        <li style="margin-left: 16px;color: orange;">请选择去程</li>
					        <li style="margin-left: -1px;font-weight: 400;">（返程发车时间与去程到达时间须相差2小时以上）</li>
					
					       </ul>
			        </div>
	        
				        <div class="hui">
						       <ul>
						        <li class="gb" style="background-color: lightgrey;border: 1px;display: inline-block;">返</li>
						        <li style="margin-left: 16px;color: orange;">请选择返程</li>
						        <li style="margin-left: -1px;font-weight: 400;">（返程发车时间与去程到达时间须相差2小时以上）</li>
						
						       </ul>
				              
				              
				       </div>
				</c:otherwise>	       
	       </c:choose>
	        
	        
       </div>
       <div id="zongqian" >应付<font>0</font>元</div>
       <input type="submit" disabled class="button blue" value="预订" style="width: 64px;margin-top: 28px;height: 32px;float:right;
font-size: 16px;color: #BCB9B7;">
            
     

 
   
      </form>
   
   


    </div>
           
		<input type="hidden"
			value='{"IsBus":false,"Filter":"0","Catalog":"","IsGaoTie":false,"IsDongChe":false,"CatalogName":"","DepartureCity":"beijing","ArrivalCity":"shenzhen","HubCity":"","DepartureCityName":"北京","ArrivalCityName":"深圳","DepartureDate":"${time1 }","DepartureDateReturn":"${time2 }","ArrivalDate":"","TrainNumber":""}'
			id="requestParameter" /> <input type="hidden" id="BaseUrl" />



		<script type="text/javascript" src='/font/js/LAB.js'></script>


		<script type="text/javascript">
			var uid = '';
			var IsTieYou = '0';
			var flightFlag = '1';
			var tychannel = ''; //铁友channel
			var SEARCH_CATE_LIST_No = [ '01' ];
			var webResourcePath = "http://webresource.ctrip.com/ResTrainOnline/R2/TrainBooking";
			var noticeContent = "";
			var releaseNo = "2017_10_11_15_10_25";
			var newFightTicket = "1";
			var searchMaxDate = '2017-11-24';
			$LAB.script({
				src : 'js/cQuery_110421.js',
				charset : "utf-8"
			}).wait().script(
					{
						src : webResourcePath + "/JS/ui2_train.min.js?"
								+ releaseNo + ".js",
						charset : "utf-8"
					}).wait().script(
					{
						src : webResourcePath + "/JS/calendar.min.js?"
								+ releaseNo + ".js",
						charset : "utf-8"
					}).wait().script(
					{
						src : webResourcePath + "/JS/ol_hotel.min.js?"
								+ releaseNo + ".js",
						charset : "utf-8"
					}).wait().script(
					{
						src : webResourcePath + "/JS/ol_search.min.js?"
								+ releaseNo + ".js",
						charset : "utf-8"
					}).wait()
		</script>
	
	<div class="footer_w" >
		<div class="footer clearfix">
			<div class="footer_c">
				<p>地址：中国浙江省杭州市西湖区教工路316号 &nbsp;| &nbsp;服务热线：0571-62332269 &nbsp;
					| &nbsp;传真：0571-62337233 备案号：0453-2xxxxxx</p>
				<p>
					Copyright © 2013 中国梦想旅游发展有限公司 All Rights Reserved. 技术支持：<a href="#">杭州风靡网络</a>
				</p>
			</div>
			<div class="f_logo" style="margin-top: 7px;">
				<img src="/font/images/b_logo.jpg">
			</div>
			<br style="clear: both">
		</div>
	</div>


	<script type="text/javascript" src="back/js/jquery-2.1.3.min.js"></script>
	<script type="text/javascript" src="back/js/city-data.js"></script>
	<script type="text/javascript" src="back/js/hzw-city-picker.min.js"></script>
	<script src="font/js/jquery.min.js"></script>
<script src="font/js/Ecalendar.jquery.min.js"></script>
<script type="text/javascript">
	$(function(){
			$("#ECalendar_case1").ECalendar({
					 type:"date",
					 skin:"#009f95",
					 name:"time1",
					 offset:[0,2]
			});
			
	})
</script>
<script type="text/javascript">
	$(function(){
			$("#ECalendar_case").ECalendar({
					 type:"date",
					 skin:"#009f95",
					 name:"time2",
					 offset:[0,2]
			});
	})
</script>
	<script>
		var cityPicker = new HzwCityPicker({
			data : data,
			target : 'cityChoice',
			valType : 'k-v',
			hideCityInput : {
				name : 'city',
				id : 'city'
			},
			hideProvinceInput : {
				name : 'province',
				id : 'province'
			}

		});

		cityPicker.init();
	</script>
	<script>
		var cityPicker = new HzwCityPicker({
			data : data,
			target : 'cityChoice1',
			valType : 'k-v',
			hideCityInput : {
				name : 'city',
				id : 'city'
			},
			hideProvinceInput : {
				name : 'province',
				id : 'province'
			}

		});

		cityPicker.init();
	</script>
	<script>
		var cityPicker = new HzwCityPicker({
			data : data,
			target : 'cityChoice2',
			valType : 'k-v',
			hideCityInput : {
				name : 'city',
				id : 'city'
			},
			hideProvinceInput : {
				name : 'province',
				id : 'province'
			}

		});

		cityPicker.init();
		
		
	</script>
</body>
</html>
 <script src="/font/js/plugins/layer/laydate/laydate.js"></script>
    <script>
        laydate({elem:"#hello",event:"focus"});var start={elem:"#start",format:"YYYY-MM-DD",min:laydate.now(),max:"2099-06-16 23:59:59",istime:true,istoday:false,choose:function(a){end.min=a;end.start=a}};var end={elem:"#end",format:"YYYY-MM-DD",min:laydate.now(),max:"2099-06-16 23:59:59",istime:true,istoday:false,choose:function(a){start.max=a}};laydate(start);laydate(end);
    </script>